package easy;

public class Solution_1603 {

    private int a;
    private int b;
    private int c;

    public Solution_1603(int big, int medium, int small) {
        a = big;
        b = medium;
        c = small;
    }

    public boolean addCar(int carType) {
        if (carType == 1 && a > 0) {
            a--;
        } else if (carType == 2 && b > 0) {
            b--;
        } else if (carType == 3 && c > 0) {
            c--;
        }
        return false;
    }

    public static void main(String[] args) {
        Solution_1603 model = new Solution_1603(1, 1, 0);
    }
}
